{% autoescape false %}
{% set helpMessage %}{{- 'CoreUpdater_HelpMessageContent'|translate('[',']',"\n\n    *") }}{% endset %}
{% if coreError %}
    [X] {{ 'CoreUpdater_CriticalErrorDuringTheUpgradeProcess'|translate }}

    {%  for message in errorMessages %}
    * {{  message }}
    {%  endfor %}

    {{ 'CoreUpdater_HelpMessageIntroductionWhenError'|translate }}

    * {{ helpMessage }}

    {{ 'CoreUpdater_ErrorDIYHelp'|translate }}
    * {{ 'CoreUpdater_ErrorDIYHelp_1'|translate }}
    * {{ 'CoreUpdater_ErrorDIYHelp_2'|translate }}
    * {{ 'CoreUpdater_ErrorDIYHelp_3'|translate }}
    * {{ 'CoreUpdater_ErrorDIYHelp_4'|translate }}
    * {{ 'CoreUpdater_ErrorDIYHelp_5'|translate }}

{% else %}
{% if warningMessages|length > 0 %}
    [!] {{ 'CoreUpdater_WarningMessages'|translate }}

    {% for message in warningMessages -%}
    * {{ message }}
    {%- endfor %}
{%- endif %}
{% if errorMessages|length > 0 -%}

    [X] {{ 'CoreUpdater_ErrorDuringPluginsUpdates'|translate }}

    {% for message in errorMessages %}
    * {{ message }}
    {% endfor %}

    {% if deactivatedPlugins|length > 0 -%}
    {%  set listOfDeactivatedPlugins %}{{ deactivatedPlugins|implode(', ') }}{% endset %}

    [!] {{ 'CoreUpdater_WeAutomaticallyDeactivatedTheFollowingPlugins'|translate(listOfDeactivatedPlugins) }}
    {% endif %}
{% endif %}
{% if errorMessages|length > 0 or warningMessages|length > 0 %}
    {{ 'CoreUpdater_HelpMessageIntroductionWhenWarning'|translate }}

    * {{ helpMessage }}
{% else %}
    Done!
{% endif %}
{% endif %}
{% endautoescape %}
